using System;

using Common.Logging;

namespace EVegetable.Service
{
    using EVegetable.Persistence;

    public abstract class BaseService
    {
        /// <summary>
        /// Data Context for Service Layer
        /// </summary>
        protected IDataContext context = DataAccessProviderFactory.Instance.GetDataContext();

        /// <summary>
        /// Log Context for Service Layser
        /// </summary>
        protected static ILog _log = null;

        /// <summary>
        /// Constructor of the BaseService
        /// </summary>
        public BaseService()
        {
            _log = LogManager.GetLogger(this.GetType());
        }
    }
}

